//熊猫优选首页
$color:#fee44e;

// 顶部欢迎栏
#header {
    height: 100px;
    padding: 20px 0px;
    text-align: center;
    border-bottom: 3px solid rgba($color: #c0b4b4, $alpha: .5);

    .container {
        padding: 10px 0px;

        img,
        span {
            float: left;
        }

        // logo
        .panda {
            float: left;

            margin-left: 20px;
            margin-top: 10px;

            h2 {
                font-size: 30px;
                font-weight: 700;
            }

            p {
                font-size: 12px;
            }
        }

        // 搜索框
        .search {
            float: left;
            width: 500px;
            height: 50px;
            position: relative;
            border: 1px solid rgb(181, 180, 180);
            margin: 14px auto;
            border-radius: 25px;
            margin-left: 145px;

            input {
                width: 88%;
                height: 96%;
                border: none;
                outline: none;
                padding-left: 10%;
                border-radius: 25px;
            }

            span {
                position: absolute;
                top: 7px;
                left: 6px;
                color: rgb(0, 0, 0);
                font-size: 34px;
            }

            div {
                background-color: $color;
                width: 120px;
                height: 50px;
                line-height: 48px;
                border-radius: 24px;
                position: absolute;
                top: 0px;
                right: 0px;
            }

        }

        //右边品质

        .shopRelevent {
            width: 280px;
            justify-content: space-between;
            align-items: center;
            // padding-left: 70px;


            .shop {
                display: flex;

                li {
                    width: 25%;
                    font-size: 12px;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    color: #999;
                }

                span {
                    color: #ff8383;
                    font-size: 12px;
                }

                .text {
                    margin: 0;
                    font-size: 34px;

                }
            }




        }

        //登录提示
        .login {
            margin-top: 25px;

            span,a{
                font-size: 14px;
                margin-left: 12px;
                color: #999;
            }

            span:first-child {
                color: rgb(195, 10, 10);
            }
        }


    }

    .container>img {
        width: 80px;
        height: 80px;
    }
}



// 导航栏
#nav {
    background: #1f1206;
    height: 45px;

    .container {
        color: #fff;

        li {
            float: left;
            width: 202px;
            text-align: center;
            line-height: 45px;
            font-size: 16px;

            &:hover {
                background: $color;
            }
        }

    }
}

//主体

//左边详细分类
#main {
    position: relative;
   

    // 二级菜单
    .secondMenu {
        width: 200px;
        height: 360px;
        border: 1px solid $color;
        position: absolute;
        top: 0;
        left: 200px;
        background: #fff;
        display: none;
        z-index: 5;
        li:last-child{
            border: none;
        }
        li {
            line-height: 40px;
            text-align: left;
            color: #999;
            margin-top: 10px;
            border-bottom: 1px solid $color;
            margin-bottom: 20px;
        padding-left: 20px;

            
            h2 {
                font-size: 22px;
                margin-left: -15px;
            }
        }
    }

    .class {
        width: 200px;
        border: 1px solid $color;

        li {
            height: 40px;
            background: $color;
            line-height: 40px;
            text-align: left;
            padding-left: 35px;

            span {
                margin-right: 20px;
                font-size: 20px;
            }

            a {
                color: rgb(21, 21, 21);
                vertical-align: top;
                &:hover {
                    color: #fca7c1;
                }
            }

            &:hover {
                background: #fff;
                
            }

            &:hover .secondMenu{
              display: block;
            }
            
        }
    }

    // 轮播
    .swiper {
        width: 655px;
        height: 230px;
        margin-top: 3px;
        margin-left: 3px;
        ul {
            height: 98%;
            margin-top: 2px;

            width: 225px;
            border: 1px solid $color;
            border-radius: 10px;
            li {
                min-height: 24px;
                width: 100%;
                border-bottom: 1px solid $color;
                text-align: center;
                color: #999;
            }
            li:last-child{
                border: none    ;
            }
        }

        .rightBox {
            border-radius: 10px;
            width: 415px;
            height: 98%;
            margin-top: 2px;
            margin-left: 10px;
            border: 1px solid $color;
            text-align: center;
            img {
                width: 406px;
                height: 220px;
                border-radius: 12px;
                vertical-align: top;
            }
        }

        img {
            width: 99%;
            height: 98%;
            border-radius: 12px;
        }
    }

    .shoes {
        width: 305px;
        height: 220px;
        padding-top: 10px;
        padding-left: 20px;
        margin-top: 3px;
        margin-left: 3px;
        background: #fff4e4;
        p:nth-child(1) {
            color: #f39742;
            font-weight: 700;
            font-size: 20px;
        }
        img:nth-child(2) {
            width: 100px;
          
            margin-bottom: 80px;
         }
        img:nth-child(3) {
           width: 130px;
           height: 130px;
           margin-top: 40px;
           margin-left: 40px;
        }
        
    }

    // 优惠券
    .favor {
        width: 100%;

        div {
            float: left;
            width: 285px;
            height: 105px;
            background: pink;
            margin-left: 4px;
            margin-top: 4px;
            border-radius: 10px;
            color: #fff;
            padding-left: 40px;
            padding-top: 20px;
            p,h2 {
                width: 140px;
                float: left;
            }
            h2 {
                font-size: 22px;
                margin-bottom: 5px;

            }
            p {
                font-size: 18px;
                margin-bottom: 10px;
            }
            span {
                font-size: 14px;
                padding: 2px 5px;
                border-radius: 10px;
                background: #fff;
                color: #fca7c1;
            }
            img {
                width: 90px;
                margin-right: 20px;
                
            }
        }

        div:nth-child(1) {
            background: linear-gradient(90deg, #fca7c1, #fbd2de);
        }

        div:nth-child(2) {
            background: linear-gradient(90deg, #f7cc9e, #f5dcc0);
        }

        div:nth-child(3) {
            background: linear-gradient(90deg, #b2deff, #edf6fd);
        }
    }

    // 每日更新
    #dailyLoad {
        width: 99.5%;
        height: 60px;
        margin-top: 1px;
        border-radius: 5px;
        background: rgb(248, 247, 247);
        line-height: 60px;

        span:first-child {
            font-size: 18px;
            color: #643c1a;
            margin-right: 30px;
            margin-left: 30px;
        }

        span:last-child a {
            font-size: 14px;
            color: #b79486;
        }
    }

    // 商品列表
    #list {
        background: rgb(228, 227, 227);
        width: 99.5%;
        border-radius: 10px;
        padding-bottom: 10px;

        ul {
            width: 100%;
            padding-top: 10px;

            li {
                float: left;
                width: 24%;
                height: 350px;
                background: #fff;
                margin-right: 5px;
                margin-bottom: 5px;
                margin-left: 6px;
                border-radius: 5px;
                text-align: center;
                padding-top: 5px;

                &:hover {
                    background: rgb(245, 245, 245);
                }

                img {
                    width: 95%;
                    height: 230px;
                }

                p {
                    padding: 2px 5px;
                    margin-top: 10px;

                }

                p:nth-child(2) {

                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }

                p:nth-child(3) {
                    span:first-child {
                        background: #ff0000;
                        color: #fff;
                        padding: 2px 8px;
                    }

                    span:last-child {
                        margin-right: 5px;
                    }
                }

                p:nth-child(4) {
                    text-align: center;
                    margin-top: 10px;

                    span:nth-child(1) {
                        margin-right: 30px;
                        color: #ff0000;
                    }

                    span:nth-child(2) {
                        margin-right: 30px;
                    }
                }
            }
        }

        .loadMore {
            width: 150px;
            height: 55px;
            line-height: 55px;
            text-align: center;
            background: $color;
            border-radius: 28px;
            margin: 10px auto 0px;
        }
    }
}